home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3881 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  826 b 

  1. Path: mail2news.demon.co.uk!cae1-5.agt.gmeds.com
  2. From: "David S. Pesetsky 230-6088 AGT/8880" <iedsp@agt.gmeds.com>
  3. Newsgroups: comp.lang.c
  4. Subject: How can I have 2 instances of a program write appending to a file?
  5. Date: Wed, 31 Jan 96 12:07:45 EST
  6. Message-ID: <9601311707.AA04679@cae1-5.agt.gmeds.com>
  7. X-NNTP-Posting-Host: cae1-5.agt.gmeds.com
  8. X-Mail2News-Path: dms1.agt.gmeds.com!cae1-5.agt.gmeds.com
  9.  
  10. Platform: IBM RISC6000 AIX3.2.5 X11R5
  11.  
  12. I need to make a c-program that can append strings to one file without
  13. interfering with other instances of that program which are running. In other
  14. words, I need it to check if the file is open, if it is, wait until it's available, then
  15. write to it. I don't want to mess with process id's. Can I do it?
  16.  
  17. Please e-mail your response to me 'cause I can't receive USENET. Thanks.
  18.  
  19. Dave
  20.